package entity;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository("equip")
public class Equip {
    @Value("蓝魔指环")
    private String name;
    @Value("指环")
    private String type;
    @Value("8")
    private Long speedPlus;
    @Value("12")
    private Long attackPlus;
    @Value("2")
    private Long defensePlus;



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Long getSpeedPlus() {
        return speedPlus;
    }

    public void setSpeedPlus(Long speedPlus) {
        this.speedPlus = speedPlus;
    }

    public Long getAttackPlus() {
        return attackPlus;
    }

    public void setAttackPlus(Long attackPlus) {
        this.attackPlus = attackPlus;
    }

    public Long getDefensePlus() {
        return defensePlus;
    }

    public void setDefensePlus(Long defensePlus) {
        this.defensePlus = defensePlus;
    }

    @Override
    public String toString() {
        return name+"{" +
                " 品种='" + type + '\'' +
                ", 速度增效=" + speedPlus +
                ", 攻击增效=" + attackPlus +
                ", 防御增效=" + defensePlus +
                '}';
    }
}
